home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / c / pro14 / putuse.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-04-02  |  768 b   |  15 lines

  1. #include <stdio.h>
  2. PutUsage()
  3. {
  4.     fprintf(stderr,
  5.     "bm: search for a given string or strings in a file or files\n");
  6.     fprintf(stderr,"synopsis: bm [option]* [string(s)] [file]*\n");
  7.     fprintf(stderr,"options:\n");
  8.     fprintf(stderr,"-c print only a count of matching lines \n");
  9.     fprintf(stderr,"-f PFile read patterns from a file PFile\n");
  10.     fprintf(stderr,"-l print a list of files containing the pattern(s) \n");
  11.     fprintf(stderr,"-n print the character offset of the pattern(s) \n");
  12.     fprintf(stderr,"-s silent mode. Return only success (0) or failure (1) \n");
  13.     fprintf(stderr,"-x print only lines which match entirely \n");
  14. } /*PutUsage */
  15.